//---------------------------------------------------------------------------

#ifndef ADD_KART_ABONH
#define ADD_KART_ABONH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DBCtrlsEh.hpp"
#include <DBCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Mask.hpp>
#include <DB.hpp>
#include "Fr_Adres.h"
#include <ActnList.hpp>
#include "cxButtons.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <DBGrids.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include "cxCalc.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDBEdit.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrADD_KART_ABON : public TForm
{
__published:	// IDE-managed Components
	TPanel *pADD_FIO;
	TLabel *Label1;
	TDBEdit *dbeNOM;
	TLabel *Label2;
	TDBDateTimeEditEh *dtpDATA_DOG;
	TLabel *Label3;
	TDBEdit *dbeFIO;
	TFrame_Adres *Frame_Adres1;
	TGroupBox *gbHAR_DOMA;
	TLabel *Label4;
	TDBLookupComboBox *cbGEU;
	TLabel *Label5;
	TDBLookupComboBox *cbKONTR;
	TLabel *Label6;
	TDBLookupComboBox *cbMNOGOET;
	TLabel *Label7;
	TLabel *Label8;
	TLabel *Label9;
	TDBEdit *dbeTEL_D;
	TDBEdit *dbeTEL_R;
	TPanel *pKOL_J;
	TLabel *Label10;
	TDBEdit *dbeKOL_J;
	TLabel *Label11;
	TDBEdit *dbeKOL_LGJ;
	TPanel *pVID_GAZA;
	TLabel *Label12;
	TDBLookupComboBox *cbVID_GAZA;
	TLabel *Label13;
	TDBLookupComboBox *cbVID_RASH;
	TLabel *Label14;
	TDBLookupComboBox *cbTARIF;
	TDBEdit *dbeKOD_TARIF;
	TLabel *Label27;
	TDBLookupComboBox *cbGOR_VOD;
	TPanel *pPribor;
	TGroupBox *GroupBox1;
	TcxButton *btAdd;
	TcxButton *btEdit;
	TcxButton *btDelete;
	TActionList *actKAddKart;
	TAction *AddPrib;
	TAction *EditPrib;
	TAction *DeletePrib;
	TDBGrid *dgF_PRIB;
	TcxButton *btNEXT;
	TAction *DALEE;
	TPanel *pKW_METR;
	TLabel *Label16;
	TEdit *edVH_OSTATOK;
	TGroupBox *gbKW_METR;
	TLabel *Label15;
	TcxCalcEdit *dbeKW_METR;
	TIBCQuery *dsetKOL_PRIB;
	TIBCQuery *dsetLICEV;
	TIBCQuery *dsetKART1;
	TIBCQuery *dsetLg;
	TIBCDataSource *dsKART1;
	TIBCDataSource *dsLg;
	TIBCDataSource *dsKOL_PRIB;
	TIBCDataSource *dsLICEV;
	TAction *actESC;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dbeNOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDATA_DOGKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeFIOKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall Frame_Adres1dbeBUKVA_KVKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbGEUClick(TObject *Sender);
	void __fastcall dbeTEL_DKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeTEL_RKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeKOL_JKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeKOL_LGJKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall FormActivate(TObject *Sender);
	void __fastcall cbVID_RASHClick(TObject *Sender);
	void __fastcall cbVID_GAZAClick(TObject *Sender);
	void __fastcall cbKONTRClick(TObject *Sender);
	void __fastcall cbTARIFClick(TObject *Sender);
	void __fastcall AddPribExecute(TObject *Sender);
	void __fastcall cbGOR_VODClick(TObject *Sender);
	void __fastcall DeletePribExecute(TObject *Sender);
	void __fastcall EditPribExecute(TObject *Sender);
	void __fastcall dbeKW_METRKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall DALEEExecute(TObject *Sender);
	void __fastcall Frame_Adres1cbNAS_PUNKTClick(TObject *Sender);
	void __fastcall cxCalcEdit1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall actESCExecute(TObject *Sender);
	void __fastcall cbMNOGOETClick(TObject *Sender);
	void __fastcall dgF_PRIBDblClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM, Stat,ZAP,NACH_POK,STAT_PRIB;
	__fastcall TfrADD_KART_ABON(TComponent* Owner);
	void __fastcall TfrADD_KART_ABON::Clear();
	void __fastcall TfrADD_KART_ABON::SaveKart();
	void __fastcall TfrADD_KART_ABON::ProverkaPrib();
	int __fastcall TfrADD_KART_ABON::Proverka();
	void __fastcall TfrADD_KART_ABON::SaveLICEV();
	void __fastcall TfrADD_KART_ABON::VID_RASH();
	void __fastcall TfrADD_KART_ABON::REDAKT_PRIB();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrADD_KART_ABON *frADD_KART_ABON;
//---------------------------------------------------------------------------
#endif
